package top.drose;

import java.util.Scanner;

//https://acm.hdu.edu.cn/showproblem.php?pid=2029
public class P38_1 {
    static Scanner sc=new Scanner(System.in);
    public static void main(String[] args) {
        int n=Integer.parseInt(sc.nextLine());

        for (int i = 0; i < n; i++) {
            String line=sc.nextLine();
            //判断是否为回文串
            boolean flag=true;
            for(int l=0,r=line.length()-1;l<r;){
                if(line.charAt(l)==line.charAt(r)){
                    l++;
                    r--;
                }else{
                    flag=false;
                    break;
                }
            }
            if(flag){
                System.out.printf("yes\n");
            }else{
                System.out.printf("no\n");
            }
        }

    }
}
